﻿namespace EFS.RC.Wallboard.Controls.Endpoints.Customer.ThirdGroup
{
	/// <summary>
	/// Interaction logic for FirstGroup.xaml
	/// </summary>
	public partial class Main : System.Windows.Controls.UserControl
	{
		private EFS.RC.Wallboard.Common.Config.Sections.Phones.Profiles.Charts.AgentStatus profile = null;

		public Main()
		{
			InitializeComponent();
		}

		#region Properties
		/// Property RingImageSource: Set
		public System.Windows.Media.ImageSource RingImageSource
		{
			set
			{
				imageRing.Source = value;
			}
		}

		/// Property Profile: Get, Set
		public EFS.RC.Wallboard.Common.Config.Sections.Phones.Profiles.Charts.AgentStatus Profile
		{
			get
			{
				return profile;
			}
			set
			{
				profile = value;
				controlSingleBarFree.Limit = new EFS.RC.Wallboard.Controls.Common.Charts.Bars.Limit(profile.Free);
				controlSingleBarLogin.Limit = new EFS.RC.Wallboard.Controls.Common.Charts.Bars.Limit(profile.Login);
				controlSingleBarBusy.Limit = new EFS.RC.Wallboard.Controls.Common.Charts.Bars.Limit(profile.Busy);
				controlSingleBarInWrap.Limit = new EFS.RC.Wallboard.Controls.Common.Charts.Bars.Limit(profile.InWrap);
			}
		}

		/// Property Free: Set
		public System.Int32 Free
		{
			set
			{
				controlSingleBarFree.CurrentValue = value;
			}
		}

		/// Property LoggedIn: Set
		public System.Int32 LoggedIn
		{
			set
			{
				controlSingleBarLogin.CurrentValue = value;
			}
		}

		/// Property Busy: Set
		public System.Int32 Busy
		{
			set
			{
				controlSingleBarBusy.CurrentValue = value;
			}
		}

		/// Property InWrap: Set
		public System.Int32 InWrap
		{
			set
			{
				controlSingleBarInWrap.CurrentValue = value;
			}
		}
		#endregion

		private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
		{
			if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
			{	
			}
		}
	}

}